/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.contactportal.tags;

import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;

/**
 *
 * @author Administrator
 */
public class Role extends BodyTagSupport {

    @Override
    public int doStartTag() throws JspException {
        
        HttpSession session = pageContext.getSession();
        if(session != null)
        {
            return EVAL_BODY_INCLUDE;
        }
        return SKIP_BODY;
    }

    @Override
    public void doInitBody() throws JspException {
        
        
    }

    @Override
    public int doEndTag() throws JspException {
        return EVAL_PAGE;
    }

    
    
}
